﻿<Window x:Class="PdfCanvasDemo.MainWindow"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
		xmlns:bc="clr-namespace:BeeCoders.Tools.Wpf.PdfCanvas;assembly=BeeCoders.Tools.Wpf"
		xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
		mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
		Title="MainWindow" Height="500" Width="700" xmlns:ig="http://schemas.infragistics.com/xaml" >
	<Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="104*" />
			<ColumnDefinition Width="399*" />
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="40" />
			<RowDefinition Height="311*" />
			<RowDefinition Height="110*" />
		</Grid.RowDefinitions>
		<Button Name="SaveButton"
				Content="Save"
				Click="SavePdfClick" 
				Grid.Column="0"></Button>

		<TabControl Grid.ColumnSpan="2" Grid.Row="1" Grid.Column="0" Name="tabControl1">
			<TabItem Header="RectTest A5" Name="tab1">
				<bc:PdfCanvas Name="RectangleCanvas" PdfPageSize="A5" ShowRuler="True" MajorRulerTickMark="15">


					<Rectangle Width="65" Height="47" Canvas.Left="245" Canvas.Top="128" Stroke="Green" ></Rectangle>

					<Rectangle Width="65" Height="109" Canvas.Left="360" Canvas.Top="128" Stroke="Red" ></Rectangle>

					<Rectangle Width="65" Height="109" Canvas.Left="473" Canvas.Top="64" Stroke="Blue" StrokeThickness="3" ></Rectangle>

					<Rectangle Width="10" Height="10" Canvas.Left="65" Canvas.Top="64" Stroke="Black" ></Rectangle>

					<Rectangle Width="10" Height="10" Canvas.Left="300" Canvas.Top="10" Stroke="Black" ></Rectangle>



				</bc:PdfCanvas>
			</TabItem>
			<TabItem Header="Ellipse A4" Name="tab2">
				<bc:PdfCanvas Name="EllipseCanvas" PdfPageSize="A4">



					<Ellipse Canvas.Left="74" Canvas.Top="56" Height="150" Name="ellipse1" Stroke="Black" Width="310" />

					<Ellipse Canvas.Left="10" Canvas.Top="20" Height="10" Stroke="Black" Width="10" />

					<Ellipse Canvas.Left="20" Canvas.Top="10" Height="10" Stroke="Black" Width="10" />



				</bc:PdfCanvas>
			</TabItem>

			<TabItem Header="Text" Name="tab3">
				<bc:PdfCanvas Name="TextCanvas" PdfPageSize="A5">

					<ListView ItemsSource="{Binding Path=States}" Canvas.Left="265" Canvas.Top="79">
						<ListView.View>
							<GridView>
								<GridViewColumn Width="140" Header="Column 1" DisplayMemberBinding="{Binding Name}"/>
							</GridView>
						</ListView.View>
					</ListView>



				</bc:PdfCanvas>
			</TabItem>
			<TabItem Header="Label">

			</TabItem>
		</TabControl>




	</Grid>

</Window>
